<template>
  <div class="all">
    <el-timeline>
      <el-timeline-item
        v-for="(activity, index) in activities"
        :key="index"
        :icon="activity.icon"
        :type="activity.type"
        :color="activity.color"
        :size="activity.size"
        :timestamp="activity.timestamp"
      >{{activity.content}}</el-timeline-item>
    </el-timeline>
  </div>
</template>
<script>
export default {
    data() {
      return {
        activities: [{
          content: '巡查任务(特急)',
          timestamp: '2018-04-12 20:46',
          size: 'large',
          type: 'primary',
          icon: 'el-icon-more'
        }, {
          content: '抄表任务(紧急)',
          timestamp: '2018-04-03 20:46',
          color: '#0bbd87'
        }, {
          content: '抄表任务(常规)',
          timestamp: '2018-04-03 20:46',
          size: 'large'
        }, {
          content: '立户任务(特急)',
          timestamp: '2018-04-03 20:46'
        }]
      };
    }
  };
</script>
<style lang="scss" scoped>
.all {
  background: #fff;
  padding: 5px;
  height: 100%;
  width: 100%;
}
</style>